Skip to content

Fetch and render trip elements on the map#3

Merged
dfalling merged 1 commit into
mainfrom
map-elements
May 24, 2026
Merged

Fetch and render trip elements on the map#3
dfalling merged 1 commit into
mainfrom
map-elements

Conversation

@dfalling
Copy link
Copy Markdown
Owner

Summary

  • Add an Elements GraphQL query driven by the visible map viewport (bounds: GeoBounds)
  • Render each element with a location as a circular pin showing its icon (rendered as native RN text so emoji glyphs work — MapLibre's symbol layer can't load emoji glyph ranges from the OpenFreeMap font stack)
  • Gate the first query on the initial fly-to so we don't fetch the whole world at zoom 1; re-fetch on every onRegionDidChange as the user pans/zooms

Test plan

  • Launch the app, grant location, confirm map zooms to user position
  • Verify element pins appear in the visible area and show their emoji icon
  • Pan/zoom the map and confirm pins refresh for the new bounds

🤖 Generated with Claude Code

Adds an Elements GraphQL query bound to the visible map viewport and
renders each element with a location as an emoji-icon pin. The query
is gated on the initial fly-to so we don't fetch the whole world at
the default zoom-1 framing, and re-runs as the user pans/zooms via
onRegionDidChange.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dfalling dfalling enabled auto-merge (squash) May 24, 2026 22:28
@dfalling dfalling merged commit af9718c into main May 24, 2026
2 checks passed
@dfalling dfalling deleted the map-elements branch May 24, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant